package com.company.behavioral.template_method_pattern.concrete_class;

import com.company.behavioral.template_method_pattern.abstract_class.Account;

/**
 * 定期账户
 * @ClassName SavingAccount
 * @Author tiezheng.han
 * @Date 2020/9/7 16:09
 **/
public class SavingAccount extends Account {

    /**
     * 覆盖父类的抽象基本方法
     */
    @Override
    public void calculateInterst() {
        System.out.println("按定期利率计算利息！");
    }
}
